package com.teamone.etl.taskmanager.service;

import com.teamone.etl.exception.CustomException;
import org.springframework.stereotype.Service;

/**
 * @Author: SixJin
 * @Date: 2021/1/12 8:39
 */
public interface ParseProcessJsonService {
    /**
     * 解析任务流程json
     * @param taskProcessJson 任务流程json
     */
    void parseJson(String taskProcessJson);

    /**
     * 根据任务id执行任务
     * @param taskId 任务id
     * @return 任务sql语句
     * @throws CustomException 统一异常
     */
    String getTask(String taskId) throws CustomException;
}
